<?php 
class ArticleModel extends RelationModel 
{
	public $_link = array(
		
		'product'=> array(  
			'mapping_type'=>BELONGS_TO,
			'class_name'=>'Product',
			'foreign_key'=>'pid',
		),
        'user'=> array(  
			'mapping_type'=>BELONGS_TO,
			'class_name'=>'User',
			'foreign_key'=>'uid',
		),
		'topic'=> array(  
			'mapping_type'=>BELONGS_TO,
			'class_name'=>'Topic',
			'foreign_key'=>'tid',
		),
	);
}
?>